﻿using CMS.BaseEntity;
using ElectronicSelling.BusinessLogic;
using System;
using System.Collections.Generic;
using System.Data;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace ElectronicSelling.UserControl
{
    public partial class OrderDetailManage : System.Web.UI.UserControl
    {
        protected void Page_Load(object sender, EventArgs e)
        {
            BindDetailOrder();
        }

        protected void BindDetailOrder()
        {
            if (Request.QueryString["orderId"] != null)
            {
                OrderDetail orderDetail = new OrderDetail();
                orderDetail.OrderId = int.Parse(Request.QueryString["orderId"].ToString().Trim());
                DataTable dt = OrderLogic.GetOrderDetail(orderDetail);
                grvOrderDetail.DataSource = dt;
                grvOrderDetail.DataBind();
            }
        }
    }
}